package cn.yitun.chat.yitunservercommonlib.converter.dto2vo.file;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.userchat.UserHeadDataDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.userchat.UserHeadDataVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface UserHeadDataDto2VoConverter {

    UserHeadDataDto2VoConverter INSTANCE = Mappers.getMapper(UserHeadDataDto2VoConverter.class);

    UserHeadDataDto vo2dto(UserHeadDataVo vo);

    List<UserHeadDataDto> vo2dto(List<UserHeadDataVo> voList);

    @InheritInverseConfiguration
    UserHeadDataVo dto2vo(UserHeadDataDto dto);

    @InheritInverseConfiguration
    List<UserHeadDataVo> dto2vo(List<UserHeadDataDto> dtoList);

}
